<%-- 
    Document   : confirmaCadastroUsuario
    Created on : 08/11/2012, 08:47:26
    Author     : Fellipe de Souza
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page errorPage="erroCampoVazio.jsp" %>

<%String nome = request.getParameter("nome");
    if ((nome == null) || (nome.equals(""))) {
        throw new Exception("Campo NOME em branco");
    }
    String login = request.getParameter("login");
    if ((login == null) || (login.equals(""))) {
        throw new Exception("Campo LOGIN em branco");
    }
    String senha = request.getParameter("senha");
    if ((senha == null) || (senha.equals(""))) {
        throw new Exception("Campo SENHA em branco");
    }
 %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>.: Oi Oi Oi :.</title>
    </head>
    <body>
        <%@include file="cabecalho.html" %>
        <h1>Verifique as informacoes fornecidas: </h1>
        <form method="POST" action='FrontController' >
            <table>
                <tr><td>Nome: </td><td><input type="text" size=50 name='nome' value=<%=nome%>> </td></tr>
                <tr><td>Login: </td><td><input type="text" size=50 name='login' value=<%=login%>> </td></tr>>
                <tr><td>Senha: </td><td><input type="password" name='senha' value=<%=senha%>> </td></tr>>
            </table>
            <p> <input type="submit" value="confirmar">
                <input type="button" value="voltar" onClick="history.back()" >
                <input type="hidden" name="cmd" value="trataCadastroUsuario" > </p>
        </form>
    </body>
</html>
